package com.liuyingxing.javaSpringCloudAccount.service;

import com.liuyingxing.entity.test.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by IntelliJ IDEA.
 * @File TestFeignClient.java
 * @Auth liuxing
 * @Date 2021/9/3 11:02
 * @Email liuxing997@foxmail.com
 */
@Component
@FeignClient(name = "client-test")
public interface TestFeignClient {

    @GetMapping("/api/test/city/{cityId}")
    public City getCityByCityId(@PathVariable int cityId);
}
